package com.itheima.health.service.impl;

import com.itheima.health.dao.MobileSetMealDao;
import com.itheima.health.pojo.Setmeal;
import com.itheima.health.service.MobileSetMealService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：wm
 * @date ：Created in 2022年06月08日
 * @description ：
 * @version: 1.0
 */
@Service
@Slf4j
public class MobileSetMealServiceImpl implements MobileSetMealService {
    @Autowired
    private MobileSetMealDao mobileSetMealDao;

//    查询套餐所有信息并返回
    @Override
    public List<Setmeal> getSetmeal() {
        List<Setmeal> setmeal = mobileSetMealDao.getSetmeal();
        return setmeal;
    }
}
